Fix memory values -- they should be in bytes.
authorEwan Mellor <ewan@xensource.com>
Sun, 25 Mar 2007 23:16:40 +0000 (00:16 +0100)
committerEwan Mellor <ewan@xensource.com>
Sun, 25 Mar 2007 23:16:40 +0000 (00:16 +0100)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/libxen/test/test_bindings.c

index 58074a9b02c39261e53af00f43c6ed1bf50de5ed..0904ec3ca8554eef942fc0249c27e8953be75fe2 100644 (file)
@@ -379,10 +379,10 @@ static xen_vm create_new_vm(xen_session *session, bool hvm)
             .name_description = hvm ? "New HVM VM" : "New PV VM",
             .user_version = 1,
             .is_a_template = false,
-            .memory_static_max = 256,
-            .memory_dynamic_max = 256,
-            .memory_dynamic_min = 128,
-            .memory_static_min = 128,
+            .memory_static_max = 256 * 1024 * 1024,
+            .memory_dynamic_max = 256 * 1024 * 1024,
+            .memory_dynamic_min = 128 * 1024 * 1024,
+            .memory_static_min = 128 * 1024 * 1024,
             .vcpus_params = vcpus_params,
             .vcpus_max = 4,
             .vcpus_at_startup = 2,